<?php
/**
 * @Author: Zheng_Great
 * @Date: 2018-12-13 10:39:10
 * @Description: 订单表 
 */

namespace frontend\models;

use yii\db\ActiveRecord;
use yii\base\Model;

class Order extends ActiveRecord{

	// 指定表
    public static function tableName()
    {
        return 'orders';
	}
	

	public function yangCustomer(){
		return $this->hasOne(Customer::className(),['id'=>'customer_id'])->asarray()->all();
	}

}

 ?>